-- GENERATED SPELL FOR [Serinar] --


function spell0_26593(pUnit, Event) --@Absorb Image,n/a--
pUnit:FullCastSpellOnTarget(48748,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26593', 3347, 1)
end

function spell1_26593(pUnit, Event) --@Serinar\'s Vision,n/a--
pUnit:FullCastSpellOnTarget(48770,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26593', 559, 1)
end

function Sorts_26593(pUnit, Event)
local choix_sorts_26593 = math.random(0, 1)
if choix_sorts_26593 == 0 then
pUnit:RegisterEvent('spell0_26593', 1, 1)
end
if choix_sorts_26593 == 1 then
pUnit:RegisterEvent('spell1_26593', 1, 1)
end
end

function mob26593_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26593', math.random(1500, 3000), 1)
end

function mob26593_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26593_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26593_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26593, 1, 'mob26593_Action')
RegisterUnitEvent(26593, 2, 'mob26593_Leave')
RegisterUnitEvent(26593, 3, 'mob26593_Kill')
RegisterUnitEvent(26593, 4, 'mob26593_Die')
